import request from '@/utils/request.js'
/**
 *
 * @param {公司的设置新增和修改} params
 */
export function departmentAdd (params) {
  return request({
    url: '/systemanage/systemDepartment/departmentAdd',
    method: 'post',
    data: JSON.stringify(params),
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

/**
 *
 * @param {公司的列表} params
 */
export function getTree (params) {
  return request({
    url: '/systemanage/systemDepartment/getTree',
    method: 'post',
    data: JSON.stringify(params),
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
/**
 *
 * @param {公司的设置删除} params
 */
export function departmentDel (params) {
  return request({
    url: '/systemanage/systemDepartment/departmentDel',
    method: 'post',
    params
  })
}
/**
 *
 * @param {公司的设置详情查看} params
 */
export function departmentDetails (params) {
  return request({
    url: '/systemanage/systemDepartment/departmentDetails',
    method: 'post',
    params
  })
}
